<p class="lead">
    <f:translate key="report_explanation" />
</p>
<p class="help">
    <f:translate key="externals_explanation" />
</p>

<f:for each="{servicesList}" as="serviceList">
    <f:render section="ServiceTypeList" arguments="{serviceList: serviceList}" />
</f:for>

<h3><f:translate key="search_paths" /></h3>
<f:if condition="{searchPaths}">
    <f:then>
        <table class="table table-striped table-hover tx_sv_reportlist">
            <thead>
                <tr>
                    <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:path" /></th>
                    <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:valid" /></th>
                </tr>
            </thead>
            <tbody>
                <f:for each="{searchPaths}" as="searchPath">
                    <tr class="{searchPath.class}">
                        <td class="first-cell">{searchPath.path}</td>
                        <td class="last-cell"><f:translate key="{searchPath.accessible}" /></td>
                    </tr>
                </f:for>
            </tbody>
        </table>
    </f:then>
    <f:else>
        <p><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:no_search_paths" /></p>
    </f:else>
</f:if>


<f:section name="ServiceTypeList">
    <h3>{serviceList.Type}</h3>
    <table class="table table-striped table-hover tx_sv_reportlist">
        <thead>
            <tr>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:service" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:description" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:priority" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:quality" /></th>
                <th style="width: 35%"><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:subtypes" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:os" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:externals" /></th>
                <th><f:translate key="LLL:EXT:reports/Resources/Private/Language/locallang_servicereport.xlf:available" /></th>
            </tr>
        </thead>
        <tbody>
            <f:for each="{serviceList.Services}" as="service">
                <f:render section="ServiceRow" arguments="{service: service}" />
            </f:for>
        </tbody>
    </table>
</f:section>

<f:section name="ServiceRow">
    <tr class="service {service.AvailabilityClass}">
        <td>{service.Information.title} ({service.Information.extKey})</td>
        <td class="first-cell">{service.Description}
            <f:if condition="{service.Information.description}">
                <p class="service-description">{service.Information.description}</p>
            </f:if>
            <code>{service.Key}</code>
        </td>
        <td class="cell">{service.Information.priority}</td>
        <td class="cell">{service.Information.quality}</td>
        <td class="cell">{service.Subtypes}</td>
        <td class="cell">{service.OperatingSystem}</td>
        <td class="cell">{service.RequiredExecutables}</td>
        <td class="last-cell">{service.Available}</td>
    </tr>
</f:section>
